package com.cloud.service.impl;

import com.cloud.Pay;
import com.cloud.dao.PaymentDao;
import com.cloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @BelongsProject: my
 * @BelongsPackage: com.cloud.service.impl
 * @Author: ji ge
 * @CreateTime: 2024-02-04  11:38
 * @Description: TODO
 * @Version: 1.0
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;


    @Override
    public Pay get(Long id) {
        return paymentDao.get(id);
    }

    @Override
    public Pay insert(Pay pay) {
        return paymentDao.insert(pay);
    }

    @Override
    public List<Pay> queryAllByLimit(int offset, int limit) {
        return paymentDao.queryAllByLimit(offset,limit);
    }
}
